package com.wdl.modules.myhouse.exception;

import org.springframework.security.authentication.InsufficientAuthenticationException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author 昏昏的君
 */
@ControllerAdvice
public class MyExceptionHandler {


    @ExceptionHandler(value = {UserNotFoundException.class})
    public String hello(){
        System.out.println("捕获到了,验证码异常");
        return "验证码异常";
    }

}
